<div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
			<input type="hidden" name="op" value="display" />
			<input type="hidden" name="do" value="manage" />
			<input type="hidden" name="m" value="{php echo MODULE_NAME}" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">海报名称</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
				</div>
			</div>
		</form>
	</div>
</div>

<form action="" method="post">
	<div class='panel panel-default'>
		<div class='panel-heading'>
			海报管理 (总数: {$total})
		</div>
		<div class='panel-body'>

			<table class="table">
				<thead>
					<tr>
						<th>海报名称</th>
						<th>关键字</th>
						{if $level != 4}
							<th>完成邀请关键字</th>
						{/if}
						<th>海报类型</th>
						<th>关注数</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $row}
					<tr>
						<td><span style="color:red;">{if !empty($row['cateParent_name'])}[{$row['cateParent_name']}]{/if}</span> <span>{if !empty($row['cateChild_name'])}{$row['cateChild_name']} - {/if}</span>  {$row['title']}</td>
						<td>
							{$row['keyword']} 
						</td>
						{if $level != 4}
							<td>
								{$row['reckeyword']} 
							</td>
						{/if}
						<td>
							<label class='label label-danger'>关注</label> 
						</td>
						<td>{$row['follows']}</td>
						<td>
							<a class='btn btn-default' href="{php echo $this->createWebUrl('manage', array('op'=>'log','id' => $row['id']))}" title='关注记录'><i class='fa fa-qrcode'></i></a>
							<a class='btn btn-default' href="{php echo $this->createWebUrl('manage', array('op' => 'post', 'id' => $row['id']))}" title='编辑'><i class='fa fa-edit'></i></a>
							<a class='btn btn-default' href="{php echo $this->createWebUrl('manage', array('op' => 'qrdelete', 'id' => $row['id']))}" title='删除邀请关系及海报数据' onclick="return confirm('删除不可恢复，确认删除？');return false;"><i class='fa fa-remove'>删除邀请关系及海报数据</i></a>
							<a class='btn btn-default' href="{php echo $this->createWebUrl('manage', array('op' => 'delete', 'id' => $row['id']))}" title='删除海报及全部数据' onclick="return confirm('删除不可恢复，确认删除？');return false;"><i class='fa fa-remove'>删除海报及全部数据</i></a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
			{$pager}
		</div>

	</div>
</form>